﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="ProductSize.aspx.cs" Inherits="WebUI.AdminSite.Product.ProductSize" %>
<%@ Import Namespace="WebUI.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script type="text/javascript" src="../../Scripts/jquery-1.6.2.min.js"></script>
<link rel="stylesheet" href="../../Scripts/jQueryUI/css/smoothness/jquery-ui-1.8.15.custom.css" type="text/css" />	
<script type="text/javascript" src="../../Scripts/jQueryUI/js/jquery-ui-1.8.15.custom.min.js"></script>    
<script type="text/javascript" src="../../Scripts/JSBack.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        InitProductMng();
    });
</script>
sizename : <asp:TextBox ID="txtName" runat="server" /><br />
datetime : <input id="fromdate" type="text" size="10" name="txtfromdate" style="width:100px;" value='<%=datefrom %>'/>&nbsp;~&nbsp;
           <input id="todate" type="text" size="10" name="txttodate" style="width:100px;" value='<%=dateto %>' /><br />
status : <asp:DropDownList ID="drpStatus" runat="server">
    <asp:ListItem Value="">---</asp:ListItem>
    <asp:ListItem Value="NORMAL">NORMAL</asp:ListItem>
    <asp:ListItem Value="STANDBY">STANDBY</asp:ListItem>
</asp:DropDownList><br />
<asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearchClick"/>
<a href="ProductSizeCreate.aspx">Created</a>
<asp:GridView ID="grdProductSize" runat="server" AutoGenerateColumns="False">
    <Columns>
        <asp:BoundField DataField="Index" HeaderText="Index" SortExpression="Index" />
        <asp:BoundField DataField="SizeNo" HeaderText="SizeNo" 
            SortExpression="SizeNo" />
        <asp:BoundField DataField="SizeName" HeaderText="SizeName" 
            SortExpression="SizeName" />
        <asp:BoundField DataField="SizeDesc" HeaderText="SizeDesc" 
            SortExpression="SizeDesc" />
        <asp:BoundField DataField="CreatedDate" HeaderText="CreatedDate" 
            SortExpression="CreatedDate" />
        <asp:BoundField DataField="CreatedUser" HeaderText="CreatedUser" 
            SortExpression="CreatedUser" />
        <asp:BoundField DataField="Status" HeaderText="Status" 
            SortExpression="Status" />
        <asp:TemplateField HeaderText="Distribution" HeaderStyle-Width="120px">
			<ItemTemplate>
				<div style="text-align:center;">
                    <asp:HyperLink ID="hplDetail" runat="server" NavigateUrl='<%# link.ToAdminDetailsProduct("ProductSizeCreate.aspx", Eval("SizeNo").ToString()) %>'
                            Text="Details" />
				</div>												
			</ItemTemplate>
		</asp:TemplateField>
    </Columns>
</asp:GridView>
</asp:Content>
